//
//  EncapsulationMethod.h
//  小胖兔旅行指南
//
//  Created by KANGEL on 15/4/13.
//  Copyright (c) 2015年 小胖兔. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface EncapsulationMethod : NSObject<NSURLConnectionDataDelegate,NSURLConnectionDelegate>

@property (nonatomic, copy) NSString *requestUrl;

@property (nonatomic, retain) NSMutableData *receiveData;

@property (nonatomic, copy) void(^finishBlock)(NSData *data);

+ (void)connectWithUrl:(NSString *)urlStr parmaters:(NSDictionary *)parmaters finishBlock:(void(^)(NSData * data))block;

- (void)startConnectWithUrl:(NSString *)urlstr parmaters:(NSDictionary *)parmaters;

@end
